Skip to content

Instantly share code, notes, and snippets.

@sdenel
sdenel / nginx-hello-world-deployment.yaml
Last active September 6, 2026 18:49
Kubernetes: a simple Nginx "Hello world" deployment file
# To deploy: kubectl create -f nginx-hello-world-deployment.yaml
# Access it with the API as a proxy:
# $ kubectl proxy
# Then in you browser: http://localhost:8001/api/v1/namespaces/default/services/nginx:/proxy/#!/
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active September 6, 2026 18:47
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@koutyuke
koutyuke / Rustを超絶丁寧に教えてくれる君.md
Last active September 6, 2026 18:45
Rustを超絶丁寧に教えてくれる君.md

Rustを超絶丁寧に教えてくれる君.md

Role

あなたは Rust の学習を支援するメンターです。 ユーザーは Rust 初学者です。 構文だけでなく、 「なぜそのように書くのか」 「Rust がどんな考え方をするのか」 まで理解することを目指します。

@pashov
pashov / MAKE_NO_MISTAKES_CLAUDE.md
Created February 18, 2026 09:31
MAKE NO MISTAKES
name make-no-mistakes
description Appends "MAKE NO MISTAKES." to every user prompt before processing it. Use this skill whenever you want Claude to be maximally precise, careful, and error-free in its responses.

Make No Mistakes

This skill instructs Claude to append the directive "MAKE NO MISTAKES." to every user prompt it receives before generating a response.

Instructions

@andrisgauracs
andrisgauracs / run_prompt.sh
Created July 31, 2026 02:57
Test a custom prompt against an already-trained, already-flashed ESP32-S3 model
#!/usr/bin/env bash
# esp32-ai: test a custom prompt against an already-trained, already-flashed model.
# Does NOT retrain and does NOT rewrite the 15MB model partition.
#
# Usage:
# ./run_custom_prompt.sh "Once there was a robot"
set -euo pipefail
if [ "$#" -lt 1 ]; then
echo "Usage: $0 \"Your custom prompt\""
@andrisgauracs
andrisgauracs / build_and_flash.sh
Created July 31, 2026 02:21
One Shot Build Script For Running 28M AI Model On ESP32-S3
#!/usr/bin/env bash
# esp32-ai: clone, train, export, build, and flash — end to end
# Reproduces github.com/slvDev/esp32-ai from a bare board.
# Requires: ESP32-S3 N16R8 (16MB flash, 8MB PSRAM).
#
# Usage:
# ./build_and_flash.sh # full run: data prep, train, export, build, flash
# ./build_and_flash.sh --skip-train # reuse an existing firmware/model/model.bin, just build + flash
set -euo pipefail
@endolith
endolith / readme.md
Last active September 6, 2026 18:41
Sethares dissmeasure function in Python

Adaptation of Sethares' dissonance measurement function to Python

Example is meant to match the curve in Figure 3:

Figure 3

Original model used products of the two amplitudes a1⋅a2, but this was changed to minimum of the two amplitudes min(a1, a2), as explained in G: Analysis of the Time Domain Model appendix of Tuning, Timbre, Spectrum, Scale.

This weighting is incorporated into the dissonance model (E.2) by assuming that the roughness is proportional to the loudness of the beating. ... Thus, the amplitude of the beating is given by the minimum of the two amplitudes.

@rediculum
rediculum / broadlink_to_tuya.py
Last active September 6, 2026 18:37 — forked from svyatogor/broadlink_to_tuya.py
Convert SmartIR Broadlink commands to Tuya
@svyatogor
svyatogor / broadlink_to_tuya.py
Last active September 6, 2026 18:35
Convert SmartIR Broadlink commands to Tuya
@Alimammiya
Alimammiya / gate-ee-study-material.md
Last active September 6, 2026 18:35
Free GATE EE Study Material for 2027 Aspirants – Download PDFs & Notes

Free GATE EE Study Material for 2027 Aspirants – Download PDFs & Notes

Preparing for GATE Electrical Engineering (EE) 2027 requires a well-organized study plan backed by reliable resources. This article brings together everything a GATE 2027 EE aspirant needs in one place — free downloadable notes, previous year question papers, recommended books, top YouTube channels, and the best coaching institutes to consider.

GATE remains the gateway to M.Tech admissions at premier institutes like IITs, NITs, and IISc, as well as recruitment opportunities in leading PSUs. For EE aspirants targeting the 2027 cycle, having a well-organized study strategy from early on makes a real difference to the final score and overall preparation quality.

The Free GATE EE Study Material for 2027 compiled below will be useful for building notes, formula sheets, cheat sheets, and quick-reference material — everything an aspirant should have in place before diving into full-scale preparation.

Table of Contents

  • GATE 2027 EE Note